package com.guigu.springcloud.controller;


import com.guigu.springcloud.service.MessageProviderImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/stream")
public class MessageController {

    @Resource
    private MessageProviderImpl messageProvider;

    @RequestMapping("/sendMessage")
    public String senMessage() {
        return messageProvider.send();
    }
}
